perm filename PROTO[CMS,LCS] blob sn#383401 filedate 1978-09-22 generic text, type T, neo UTF8
00100		Floppy disk serial protocol.
00200	
00300	EC = Error code.
00400	"A" = ASCII = 101.
00500	<Xxxx> = 1 Byte.
00600	0 < NLEN < 10.
00700	<Check sum> = NOT SUM(Data) +1.
00800	57 < <Number of blks> < 72. (Decimal ascii)
00900	
01000	Host		Floppy
01100	--------------------------------
01200		Write
01300	--------------------------------
01400	 1
01500	"W"
01600	 4
01700			20 or EC
01800	 2
01900	<Data> * 256
02000	<Check sum>
02100			20 or EC
02200	--------------------------------
02300		Read
02400	--------------------------------
02500	 1
02600	"R"
02700	 4
02800			20 or EC
02900			2
03000			<Data> * 256
03100			<Check sum>
03200	--------------------------------
03300		Define file
03400	--------------------------------
03500	 1
03600	"E"
03700	<File name> * NLEN
03800	 4
03900			20 or EC
04000	--------------------------------
04100		Close
04200	--------------------------------
04300	 1
04400	"C"
04500	 4
04600			20 or EC
04700	--------------------------------
04800		Select file
04900	--------------------------------
05000	 1
05100	"O"
05200	<File name> * NLEN
05300	 4
05400			20 or EC
05500	--------------------------------
05600		Delete file
05700	--------------------------------
05800	 1
05900	"K"
06000	<File name> * NLEN
06100	 4
06200			20 or EC
     

00100	Host		Floppy
00200	--------------------------------
00300		Request directory
00400	--------------------------------
00500	 1
00600	"D"
00700	 4
00800			20 or EC
00900	--------------------------------
01000		Send next directory
01100	--------------------------------
01200	 1
01300	"N"
01400	 4
01500			20 or EC
01600			2
01700			16 * ( (<File name>*9) OR (<0>*9), " ", <Number of blks>*3 )
01800			4
01900	--------------------------------
02000		Request free blocks
02100	--------------------------------
02200	 1
02300	"B"
02400	 4
02500			20 or EC
02600			2
02700			<Number of blks> * 3
02800			4
02900	--------------------------------
03000		Perform special function
03100	--------------------------------
03200	 1
03300	"P"
03400	 4
03500			20 or EC
03600	--------------------------------
03700		Format disk
03800	--------------------------------
03900	 1
04000	"F"
04100	 4
04200			20 or EC
04300	--------------------------------
04400		Initialize directory
04500	--------------------------------
04600	 1
04700	"I"
04800	 4
04900			20 or EC
05000	--------------------------------
05100		Compress disk
05200	--------------------------------
05300	 1
05400	"Q"
05500	 4
05600			20 or EC
     

00100		Error codes.
00200	All error codes are in octal.
00300	
00400	2	File already exists.
00500	
00600	3	File does not exist.
00700	
00800	4	Illegal command.
00900	
01000	5	Disk full.
01100	
01200	6	End of file.
01300	
01400	7	Initialize error.
01500	
01600	10	File already open.
01700	
01800	11	Communication error.
01900	
02000	13	Directory read error.
02100	
02200	14	Block check error.